
import {axios,get,post} from "@/utils/axios"


export const gettoken = params => get("/prj/gettoken",params)
//登录
export const loginAjax = params => post("/prj/login",params)

// 普通用户注册
export const Regist = params => post("/prj/regist",params)

//查询用户
export const user = params => post("/prj/user",params)

export const user1 = params => post("/prj/user1",params)

// 查询编辑员工
export const operation = params => post("/prj/operation",params)

//修改职位
export const updateoper = params => post("/prj/updateoper",params)

//开除职位
export const deloper = params => post("/prj/deloper",params)

//申请休假
export const leave = params => post("/prj/leave",params)
//查找休假
export const findleave = params => post("/prj/findleave",params)
// 修改请假
export const leaveupdate = params => post("/prj/leaveupdate",params)


//审批
export const approval = params => post("/prj/approval",params)
//签到
export const sign = params => post("/prj/sign",params)

export const find = params => post("/prj/find",params)
//留言
export const addadvise = params => post("/prj/addadvise",params);


export const gethomebanner = params => post("/prj/gethomebanner",params);

export const getadviselist = params => post("/prj/getadviselist",params);

export const delAdviseOne = params => post("/prj/delAdviseOne",params);

export const getadvisebyid = params => post("/prj/getadvisebyid",params);

export const updateadvisebyid = params => post("/prj/updateadvisebyid",params);

export const addreply = params => post("/prj/addreply",params);

// 上传头像
export const uploadpic = params => post("/prj/uploadpic",params);

// 修改密码
export const modify = params => post("/prj/modify",params);


/*
goodlist 商品列表
*/ 
export const getgoodlist = params => post("/vue/goodlist",params);


/*
goodlist 商品分类
*/ 
export const getgoodtypelist = params => post("/vue/goodtypelist",params);



/*
getgoodone 商品详情
*/ 
export const getgoodone = params => post("/vue/getgoodone",params);



/*
addtocart 添加购物车 
*/ 
export const addtocartajax = params => post("/vue/addtocart",params);


/*
getmycart 我的购物车 
*/ 
export const getmycart = params => post("/vue/getmycart",params);


/*
changecartcount 修改数量
*/ 
export const changecartcount = params => post("/vue/changecartcount",params);


/*
changecartcount 修改选中
*/ 
export const changecartcheck = params => post("/vue/changecartcheck",params);


/*
delcartone 删除
*/ 
export const delcartone = params => post("/vue/delcartone",params);


/*
delcartcheck 批量删除
*/ 
export const delcartcheck = params => post("/vue/delcartcheck",params);


